package org.cvcsc.weproject.domain;

import jakarta.persistence.Embeddable;

@Embeddable
public class StudentNameNumber {
     private String name;

    public String getName() {
        return name;
    }

     private String number;

    public String getNumber() {
        return number;
    }

    public StudentNameNumber(String name, String number) {
        this.name = name;
        this.number = number;
    }

    // 添加私有无参数构造方法
    private StudentNameNumber() {
        // 防止外部直接实例化
    }
}
